// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: false },
  experimental: {
    viewTransition: true,
    renderJsonPayloads: true
  },
  app: {
    pageTransition: { name: 'page', mode: 'out-in' },
    layoutTransition: { name: 'layout', mode: 'out-in' }
  },
  modules: [
    '@formkit/auto-animate/nuxt',
    'nuxt-icon',
    '@pinia/nuxt',
    'dayjs-nuxt',
    '@nuxt/ui',
    '@pinia-plugin-persistedstate/nuxt',
    '@samk-dev/nuxt-vcalendar',
    '@vueuse/nuxt',
    '@nuxt/image',
  ],
  ui: {
    global: true
  },
  dayjs: {
    locales: ['en', 'ru'],
    defaultLocale: 'ru',
    plugins: [
      'advancedFormat',
      'customParseFormat',
      'utc',
      'timezone',
      'relativeTime',
      'localizedFormat',
      'localeData',
      'isToday',
      // 'updateLocale',
      'weekday',
      'dayOfYear',
      'duration',
      'isBetween',
      'isLeapYear',
      'isSameOrAfter',
      'isSameOrBefore'
    ]
  },
  imports: {
    dirs: [
      'store',
      'store/lab',
      'composables'
    ],
  },
})